const mongoose = require("./db")

const userSchema = mongoose.Schema({
    username:{type:String},
    password:{type:String},
    avatar:{type:String},
    tel:{type:Number},
    email:{type:String},
    regTime:{type:Number},
    lastLoginTime:{type:Number},
    nickName:{type:String},
    power:{type:Number},    // 0为普通用户，1为vip，2为超级svip
    age:{type:Number},
    sex:{type:String},
    isMarried:{type:Boolean},
    hobby:{type:Array}
})

module.exports = mongoose.model("user", userSchema);